﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="MaintainQuestions.aspx.cs" Inherits="MyHealthByDesign.Admin.MaintainQuestions" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>Maintain Questions</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>Maintain Questions</h3>
    <p style="font-weight: bold;">
        Use the form below to make additions, changes, and deletions to questionnaire categories.
    </p>
    <br />
    <div style="height: 1400px;">
        <div style="width: 300px; float: left;">
            Select to list a category's questions:
            <asp:DropDownList ID="ddlCategories" runat="server" Width=200 AutoPostBack=true 
                onselectedindexchanged="ddlCategories_SelectedIndexChanged">
            </asp:DropDownList><br /><br />
            <div>
                <div style="width: 200px; float: left;">
                    <asp:ListBox ID="lbQuestions" runat="server" SelectionMode=Single Rows=15 
                        Width=200 OnSelectedIndexChanged="lbQuestions_SelectedIndexChanged" 
                        AutoPostBack="True"></asp:ListBox><br /><br />
                    <asp:Button ID="btnDelete" runat="server" Text="Deactivate Selected Question" 
                        onclick="btnDelete_Click" 
                        OnClientClick="javascript:return confirm('Are you sure you want to deactivate the selected question ?')" 
                        Width="195px" />
                    <br />
                    <br />
                    <asp:Button ID="btnOptions" runat="server" Text="Edit Question Options" 
                        onclick="btnOptions_Click" 
                        Width="195px" />
                </div>
                <div style="width: 75px; float: left; padding-left:3px;">
                    <asp:ImageButton ID="btnMoveUp" ImageUrl="~/Images/btnUp.jpg" runat="server" Width=25 
                        onclick="btnMoveUp_Click" /><br /><br />
                    <asp:ImageButton ID="btnMoveDown" ImageUrl="~/Images/btnDown.jpg" runat="server" Width=25 
                        onclick="btnMoveDown_Click" />
                </div>
            </div>
        </div>
        <div style="width: 65%; float: left; padding-left:3px;">
            <asp:Label ID="lblErrors" runat="server" ForeColor="Red" Text=""></asp:Label><br /><br />
            <asp:PlaceHolder ID="phPanel" runat="server"></asp:PlaceHolder><br /><br />
            <div class="admin-content">
                <asp:ValidationSummary ID="vsQuestion" runat="server" ForeColor="Red" Style="padding-left: 55px;" Font-Italic="True" />
                <asp:Panel ID="pnlQuestionCore" runat="server" Visible=false>
                 
                </asp:Panel>
                <asp:Panel ID="pnlOptions" runat="server" Visible=False>
                    
                </asp:Panel>
                <asp:Panel ID="pnlProcessingRules" runat="server" Visible=False>
                    
                </asp:Panel>
                <asp:Panel ID="pnlSubmit" runat="server" Visible=False>
                    <ul>
                        <li>
                            <asp:Button ID="btnSubmit" runat="server" Text="Submit Form" 
                                CausesValidation="true" onclick="btnSubmit_Click" />                     
                        </li>
                    </ul>
                </asp:Panel>
                <asp:Panel ID="pnlDisplaySelect" runat="server" Visible=False>
                    <ul>
                        <li>
                            <label for="displayTypeSelect">
                            Display Type:</label>
                            <asp:DropDownList ID="ddlSelectDisplay" runat="server">
                                <asp:ListItem Text="SimpleTextBox" Value="MyHealthByDesign.Domain.Panels.SimpleTextBox"></asp:ListItem>
                                <asp:ListItem Text="TextBoxWithChecklist" Value="MyHealthByDesign.Domain.Panels.TextBoxWithChecklist"></asp:ListItem>
                                <asp:ListItem Text="SimpleDropDownList" Value="MyHealthByDesign.Domain.Panels.SimpleDropDownList"></asp:ListItem>
                                <asp:ListItem Text="SimpleCheckBox" Value="MyHealthByDesign.Domain.Panels.SimpleCheckBox"></asp:ListItem>
                                <asp:ListItem Text="RangeDropDownList" Value="MyHealthByDesign.Domain.Panels.RangeDropDownList"></asp:ListItem>
                                <asp:ListItem Text="RadioList" Value="MyHealthByDesign.Domain.Panels.RadioList"></asp:ListItem>
                                <asp:ListItem Text="MultipleTextBoxes" Value="MyHealthByDesign.Domain.Panels.MultipleTextBoxes"></asp:ListItem>
                                <asp:ListItem Text="LongLabelMessageBox" Value="MyHealthByDesign.Domain.Panels.LongLabelMessageBox"></asp:ListItem>
                                <asp:ListItem Text="CheckBoxList" Value="MyHealthByDesign.Domain.Panels.CheckBoxList"></asp:ListItem>
                            </asp:DropDownList>&nbsp;
                        </li>
                        <li>
                            <asp:Button ID="btnSubmitDisplay" runat="server" Text="Select Display Type" 
                                onclick="btnSubmitDisplay_Click" />                     
                        </li>
                    </ul>
                </asp:Panel>
            </div>
        </div>
    </div>
    <div style="width: 100%;">
    </div>
</asp:Content>
